import request from "@/utils/request";

export function getBrandModelListPage(data) {
  return request({
    url: '/acBrandModel/selectAll',
    method: 'get',
    params: { size:data.size,
      current:data.current
    }
  })
}


export function addBrandModel(data) {
  return request({
    url: '/acBrandModel/insert',
    method: 'post',
    data
  })
}

export function updBrandModel(data) {
  return request({
    url: '/acBrandModel/update',
    method: 'put',
    data
  })
}
export function delBrandModel(data) {
  return request({
    url: '/acBrandModel/delete',
    method: 'delete',
    params: { idList:data
    }
  })
}


export function getBrandModelById(data) {
  return request({
    url: '/acBrandModel/selectOne/'+data,
    method: 'get'
  })
}
